package com.itheima.duotai;

import com.sun.jdi.ShortType;

public class Test {

    public static void main(String[] args) {
        Sheep sheep = new Sheep();
         sheep.eat();//羊吃草
        System.out.println(sheep.pi);//羊皮
        Wolf wolf = new Wolf();
        wolf.eat();//狼吃羊
        System.out.println(wolf.pi);//狼皮
        //披着羊皮的狼
        Sheep  lang= new Wolf();//多态
        System.out.println(lang.pi);//  羊皮
        lang.eat();//  狼吃羊

    }
}
